package com.santos.hw;

import org.junit.Test;
import org.springframework.context.ApplicationContext;
import org.springframework.context.support.FileSystemXmlApplicationContext;

public class main {

    public static void main(String[] args)
    {
        System.out.println("SID");

        ApplicationContext ctx = new FileSystemXmlApplicationContext("/src/main/resources/sayhello.xml");
//        Object sh = ctx.getBean("sayhello");
//        //sh.getSay();
//        System.out.println(sh);

        inmethodService sd = ctx.getBean("inmethod", inmethodService.class);
        System.out.println(sd);


        ((FileSystemXmlApplicationContext) ctx).close();
    }
}
